package 语法.解析数据
//定义对象初始化
//Langs是根节点，type，count，mainstream是这个节点的属性，language是他的子节点
class Langs {
    String type = 'current'
    int count = 3
    boolean  mainstream = true

    def language = [new Language(flavor: 'static',version: '1.5',value: 'java'),
                    new Language(flavor: 'dymic',version: '1.6',value: 'js'),
                    new Language(flavor: 'static',version: '1.7',value: 'jj')
    ]
}
//Langs节点，flavor，version是这个节点的属性，value是节点的值
class Language{
    String flavor
    String version
    String value
}

